package com.liu.project.dao;

import com.liu.project.pojo.Feedback;
import com.liu.project.pojo.FeedbackType;
import com.sun.javafx.font.freetype.FTFactory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: project
 * @description: 反馈操作表
 * @author: 86187
 * @create: 2022-02-21 14:50
 **/

@Mapper
@Repository
public interface FeedbackMapper {

     List<Feedback>  findAll();

    Feedback findOneById(int id);

    Feedback findOneByTitle(String title);

    List<Feedback> findByKey(String key);

    List<Feedback> findByType(int fid);

    List<Feedback> findByTreatment(boolean treatment);

     int insertOne1(Feedback feedback);

     int insertOne2(FeedbackType feedbackType);

     int updateOne(Feedback feedback);

     int deleteOne(int id);


    String findTypeByFid(int fid);

    List<FeedbackType>findAllType();


}
